//
//  SERegistrationCardListCell.swift
//  SmartEyeForPatient
//
//  Created by qdsg on 2021/7/27.
//

import UIKit

struct SERegistrationCardListCellModel {
    var title: String = ""
    var isSelected: Bool = false
}

class SERegistrationCardListCell: UITableViewCell {

    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var selectedBtn: UIButton!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    func updateCellWithModel(model: SERegistrationCardListCellModel) {
        titleLabel.text = model.title
        selectedBtn.isHidden = !model.isSelected
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
